﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StructureMap;
using Universum.Infrastructure.Persistence;
using Universum.Infrastructure.Configuration;

namespace Universum
{
	public static class Bootstrap
	{
		public static void BootstrapStructureMap()
		{
			
			ObjectFactory.Configure(configure =>
			{
				
				configure.AddRegistry<RepositoryRegistry>();
				configure.AddRegistry<SecurityRegistry>();				
				configure.AddRegistry<ServicesRegistry>();
				configure.AddRegistry<BlogRegistry>();
				configure.AddRegistry<QuestionItRegistry>();
				configure.AddRegistry<ClassesRegistry>();
				configure.AddRegistry<FeedbackRegistry>();
				
				configure.AddConfigurationFromXmlFile("StructureMap.config.xml");
			}
				);
		}
	}
}
